﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Client.master" AutoEventWireup="true"
    CodeFile="joy.aspx.cs" Inherits="Client_joy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script src="../Scripts/paging.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_Nav" runat="Server">
    <ul id="secnav">
        <li><a href="../index.aspx">index<span>首页</span></a></li>
        <li><a href="code.aspx">code<span>代码</span></a></li>
        <li><a href="database.aspx">database<span>数据库</span></a></li>
        <li><a href="video.aspx">video<span>视频</span></a></li>
        <li><a href="soft.aspx">soft<span>软件</span></a></li>
        <li><a href="joy.aspx">joy<span>休闲一刻</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_RightMain" runat="Server">
<asp:Repeater ID="rpt_ArticleList" runat="server">
        <ItemTemplate>
            <div class="postItem clearfix">
                <h2 id='<%#Eval("article_id") %>' class="h1">
                    <a href='Article/article.aspx?article_id=<%#Eval("article_id") %>&comment_count=<%#Eval("comment_count")%>'
                        rel="Bookmark" title='<%#Eval("article_title") %>'>
                        <%#Eval("article_title") %>
                    </a>
                </h2>
                <div class="post-meta-top">
                    <a rel="Next" rev="Prev" href='Other/author.aspx?users_id=<%#Eval("users_id") %>'
                        title='作者:<%#Eval("article_author") %>'>
                        <%#Eval("article_author") %>
                    </a>&nbsp;&nbsp;发表于&nbsp;&nbsp;<%#Eval("article_startTime") %>&nbsp;&nbsp; 分类：<a
                        rel="Next" rev="Prev" title='<%#Eval("articleType_Name") %>' href='<%#Eval("articleType_Name") %>.aspx?ArticleType_Id=<%#Eval("articleType_id") %>'><%#Eval("articleType_nickName")%></a>&nbsp;&nbsp;
                    <a rel="category tag" title='<%#Eval("article_title") %>' href='articleComment.aspx?article_id=<%#Eval("article_id") %>'>
                        <%#Eval("comment_count")%>&nbsp;&nbsp;条评论 »</a>&nbsp;&nbsp;阅读数：<%#Eval("article_readerNumber")%>
                </div>
                <p>
                    <%#Eval("article_introduction")%>
                    <a class="moreLink" title='查看 <%#Eval("article_title") %> 的全部内容' href='Article/article.aspx?article_id=<%#Eval("article_id") %>&comment_count=<%#Eval("comment_count")%>'>
                        阅读全文&gt;</a>
                </p>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <div class="clear">
    </div>
    <div class="wp-pagenavi">
        <script type="text/javascript">
            var pg = new showPages('pg');
            pg.pageCount = "<%=GetPageCount() %>"; // 定义总页数(必要)
            pg.printHtml();
        </script>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="chp_LeftMain" runat="Server">
<h3>
        热门文章</h3>
    <ul>
        <asp:Repeater ID="rpt_Top" runat="server">
            <ItemTemplate>
                <li><a title='<%#Eval("article_title")%>' href='Article/article.aspx?article_id=<%#Eval("article_id") %>&comment_count=<%#Eval("comment_count")%>'
                    rel="Next"><span class="wpp-post-title">
                        <%#Eval("article_title")%></span></a> </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
    <h3>
        系列文章</h3>
    <ul>
        <asp:Repeater ID="rpt_SeriesArticle" runat="server">
            <ItemTemplate>
                <li><a title='<%#Eval("SeriesArticle_Name") %>' href='Article/article.aspx?article_id=<%#Eval("Article_Id") %>&comment_count=<%#Eval("comment_count")%>'
                    rel="Next" rev="Index"><span>
                        <%#Eval("SeriesArticle_Name") %></span></a> </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
    <h3>
        网站信息</h3>
    <ul>
        <li>文章总数：<%=GetArticleCount() %></li>
        <li>评论总数：<%=CommentCount() %></li>
        <li>网站当前在线人数：<%=GetOnline() %></li>
        <li>站长：追夢</li>
        <li>QQ交流群1：190500421</li><li>QQ交流群2：158430651</li><li>QQ交流群3：205886913</li>
    </ul>
    <h3>
        友情链接</h3>
    <ul class="xoxo blogroll">
        <asp:Repeater ID="rpt_Links" runat="server">
            <ItemTemplate>
                <li><a title='<%#Eval("Links_Name")%>' href='<%#Eval("Links_Url")%>' rel="Next" rev="Prev"
                    target="_blank">
                    <%#Eval("Links_Name")%></a> </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</asp:Content>
